{extend name='admin@main'}

{block name="button"}
<!--{if auth("remove")}-->
<!--<button data-action='{:url("remove")}' data-rule="id#{key}" class='layui-btn layui-btn-sm layui-btn-primary'>删除活动信息</button>-->
<!--{/if}-->
<!--<div class="layui-form-item layui-inline">-->
    <!--<button  class="exportOrders layui-btn layui-btn-sm layui-btn-normal">导出数据</button >-->
<!--</div>-->
{/block}

{block name="content"}
<div class="think-box-shadow">
    {include file='follow_record/index_search'}
    <table class="layui-table margin-top-10" lay-skin="line">
        {notempty name='list'}
        <thead>
        <tr>
            <!--<th class="text-center">ID</th>-->
            <th class="text-center">ID</th>
            <th class="text-center">随访时间</th>
            <th class="text-center">检查报告</th>
            <th class="text-center">随访记录</th>
            <th class="text-center">添加时间</th>
        </tr>
        </thead>
        {/notempty}
        <tbody>
        {foreach $list as $key=>$vo}
        <tr>
            <td class='text-center nowrap'>
                {$vo.id|default=''}
            </td>

            <td class='text-center nowrap'>

                {$vo.visit_at|default=''}
            </td>
            <td class='text-center nowrap'>

                {foreach $vo.inspect_imgs as $kk=>$vv}
                {notempty name='vv'}
                <img data-tips-image style="width:40px;height:40px;margin-bottom: 5px" src="{$vv|default=''}"
                     class="margin-right-5 text-top">
                {/notempty}
                {if ($kk+1)%3 eq 0}<br>{/if}
                {/foreach}
            </td>
            <td class='text-center nowrap'>
                <div class="inline-block" style="width:200px;white-space:normal;word-wrap:break-word;word-break:break-all;">
                   {$vo.visit_info|default=''}
                </div>
            </td>

            <td class='text-center nowrap'>{$vo.create_at|default=''}</td>
            <!--<td class='text-center nowrap'>-->

                <!--<div class="nowrap margin-bottom-5">-->
                    <!--<a data-dbclick class="layui-btn layui-btn-sm" data-open='{:url("follow_record/index")}?id={$vo.id}'>查看随访记录</a>-->

                <!--</div>-->

            <!--</td>-->
        </tr>
        {/foreach}
        </tbody>
    </table>
    {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
</div>
<script>

</script>
{/block}
